import { MockMethod } from "vite-plugin-mock"
const preix = "/kedasys2/api"
export default [
  {
    url: `${preix}/device/error/message`,
    method: "post",
    response: () => ({
      code: "200",
      data: [
        { id: "001", time: "2025-07-26 12:31:10", deviceName: "喷涂设备", errorCode: "504" },
        { id: "002", time: "2025-07-26 14:14:59", deviceName: "喷涂设备", errorCode: "504" },
        { id: "003", time: "2025-07-26 15:20:34", deviceName: "喷涂设备", errorCode: "504" },
        { id: "004", time: "2025-07-26 16:19:30", deviceName: "烧结设备", errorCode: "625" },
        { id: "005", time: "2025-07-26 14:47:45", deviceName: "烧结设备", errorCode: "625" }
      ],
      msg: "成功"
    })
  },
  {
    url: `${preix}/home/save`,
    method: "post",
    response: () => ({
      code: "200",
      data: null,
      msg: "成功"
    })
  }
] as MockMethod[]
